package com.shire.shire_interface.dao.stat;

import com.shire.shire_interface.model.stat.CsSessionStat;
import com.shire.shire_interface.model.stat.CsSessionStatExample;
import com.shire.shire_interface.model.stat.CsSessionStatKey;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CsSessionStatDao {
    long countByExample(CsSessionStatExample example);

    int deleteByExample(CsSessionStatExample example);

    int deleteByPrimaryKey(CsSessionStatKey key);

    int insert(CsSessionStat record);

    int insertSelective(CsSessionStat record);

    List<CsSessionStat> selectByExample(CsSessionStatExample example);
    List<CsSessionStat> selectByAccountsAndDates(CsSessionStatExample example);

    CsSessionStat selectByPrimaryKey(CsSessionStatKey key);

    int updateByExampleSelective(@Param("record") CsSessionStat record, @Param("example") CsSessionStatExample example);

    int updateByExample(@Param("record") CsSessionStat record, @Param("example") CsSessionStatExample example);

    int updateByPrimaryKeySelective(CsSessionStat record);

    int updateByPrimaryKey(CsSessionStat record);
}